package com.thread.base01_thread;

public class App2 {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            System.out.println(Thread.currentThread().getName());
        },"t1");
        thread.start(); // 启动线程
    }
}
